import request from "@/utils/request";

const DEPT_BASE_URL = "/device";

export function listApi(data) {
  return request({
    url: `${DEPT_BASE_URL}/list`,
    method: "post",
    data: data,
  });
}

export function pinApi(data) {
  return request({
    url: `${DEPT_BASE_URL}/pin`,
    method: "post",
    data: data,
  });
}

export function deleteApi(data) {
  return request({
    url: `${DEPT_BASE_URL}/delete`,
    method: "post",
    data: data,
  });
}
